<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh-CN"/>

<div class="modal-dialog demo2do-modal-dialog">

  <div class="modal-content">

    <div class="modal-header earth-breadcrumb no-bottom-border clearfix">
      <h2><i class="glyphicon glyphicon-fire" title=""></i>&nbsp;&nbsp;<span>服务商&nbsp;-&nbsp;添加服务商</span></h2>
      <button type="button" class="close" data-dismiss="modal">&times;</button>
    </div>

    <form class="form-horizontal" method="post" action="${ctx}/apps" data-validate="true">
      
      <div class="modal-body">

        <div class="form-group demo2do-form-group">
          <label class="col-xs-3 control-label">服务商名称</label>
          <div class="col-xs-7">
            <input type="text" class="form-control" name="name" data-validate="required">
          </div>
        </div>
        
        <div class="form-group demo2do-form-group">
          <label class="col-xs-3 control-label">AppId</label>
          <div class="col-xs-7">
            <input type="text" class="form-control" name="appId" data-validate="required">
          </div>
        </div>
        
        <div class="form-group demo2do-form-group">
          <label class="col-xs-3 control-label">Host</label>
          <div class="col-xs-7">
            <input type="text" class="form-control" name="host" data-validate="www">
          </div>
        </div>
        		
      </div>

      <div class="modal-footer">
        <button id="submit" type="submit" class="btn btn-success btn-shadow btn-shadow-success demo2do-btn">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default demo2do-btn" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>

</div>

<script src="${ctx.resource}/js/bootstrap.validate.trigger.js"></script>
